//
//  LoginVC.m
//  LRAccount
//
//  Created by dev on 2018/7/29.
//  Copyright © 2018年 武汉伴悦科技. All rights reserved.
//

#import "LoginVC.h"
#import "LRAccount.h"

@interface LoginVC ()

@end

@implementation LoginVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.phoneTextField.layer.borderWidth=1;
    self.phoneTextField.layer.borderColor=[UIColor colorWithRed:223/255.0 green:37/255.0 blue:46/255.0 alpha:1].CGColor;
    self.passwordWordTextField.layer.borderWidth=1;
    self.passwordWordTextField.layer.borderColor=[UIColor colorWithRed:223/255.0 green:37/255.0 blue:46/255.0 alpha:1].CGColor;
    
    LRPageModel *model1=[[LRPageModel alloc]initWithControl:self.phoneTextField andType:LRPageControlTypePhone];
    LRPageModel *model2=[[LRPageModel alloc]initWithControl:self.passwordWordTextField andType:LRPageControlTypePassword];
    LRPageModel *model3=[[LRPageModel alloc]initWithControl:self.submitBtn andType:LRPageControlTypeSubmitButtom];
    NSArray *arr=[[NSArray alloc]initWithObjects:model1,model2,model3,nil];
    
    LRAccountPage *page=[LRAccount Page];
    [page pageGenerateWithControls:arr andNetBlock:^(NSDictionary *dataDic) {
        NSLog(@"回调%@", dataDic);
    }];
    // Do any additional setup after loading the view from its nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
